package com.crane.oss.school.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crane.oss.app.bean.req.AppUnBindingStudentReq;
import com.crane.oss.school.bean.request.studentuser.AddStudentUserReq;
import com.crane.oss.school.bean.request.studentuser.UpdateStudentUserReq;

import com.crane.oss.school.bean.request.QueryStudentUserReq;
import com.crane.oss.school.bean.resp.StudentUserResp;

import java.util.List;

/**
 * 学生关联家长信息
 *
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2022年04月16日 19时52分58秒
 */
public interface StudentUserService {

    /**
     * 查詢对象
     * @param id
     * @return
     */
    StudentUserResp queryStudentUser (Long id);

    /**
     * 查询列表
     * @param request
     * @return
     */
    IPage<StudentUserResp> queryList(QueryStudentUserReq request);

    /**
     * 保持对象
     * @param request
     * @return
     */
    int save(AddStudentUserReq request);

    /**
     * 修改对象
     * @param request
     * @return
     */
    int update(UpdateStudentUserReq request);

    /**
     * 删除对象
     * @param id
     * @return
     */
    int delete(Long id);

    List<StudentUserResp> queryStudentInfo(Long appUserId);

    Integer countStudentId(Long studentId,Long userId);

    void deleteStudent(AppUnBindingStudentReq appBindingStudentReq);
}
